using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
      [Table("T_OrderDetail")]
    public  partial class OrderDetail
    {
     
          public string OrderId { get; set; }="";

           [ForeignKey("OrderId")]
           public virtual Order OwnOrder {get;set;}=null!;

        /// <summary>
        /// 价格
        /// </summary>

        /// <summary>
        /// 商品ID，外键
        /// </summary>
        

        public long ProductId { get; set; }

        [ForeignKey("ProductId")]
         public virtual Product OwnProduct{get;set;}=null!;

        /// <summary>
        /// 数量
        /// </summary>
       
        public long Quantity { get; set; }  

         [Column(TypeName = "decimal(18,2)")]
        public decimal UnitPrice { get; set; }

    }
}